
<script id="goods" type="text/html">
<!-- 视频 -->
{{if video}}
<div data-id="article-content" class="col-xs-12 col-sm-12 col-md-12">
<video controls="controls" autoplay="autoplay" src="{{video}}"/>
</div>
{{/if}}
<!-- 内容 -->
<div data-id="article-content" class="col-xs-12 col-sm-12 col-md-12" data-content="{{if content}}{{content}}{{/if}}">	
</div>
</script>

<script type="text/javascript">
template.helper("dateformation", function(str){
	if(str.indexOf("-")){
		str = str.substr(str.indexOf("-")+1);
		if(str.lastIndexOf(":")){
			str = str.substr(0, str.lastIndexOf(":"));
		}
	}
	return str;
});
vjs.load(function(){
	var content = $("[data-id='article-content']").attr("data-content");
	if(content){
		$("[data-id='article-content']").html(content);
	}
});
</script>



